package com.ato.mybatis.pojo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wangjing
 * @create 2021--09--23--下午 4:44
 */
@Data
@ApiModel(description = "用户模型")
public class UserPojo implements Serializable {
    @ApiModelProperty("id")
    @JsonSerialize
    private Long id;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("年龄")
    private Integer age;

    @ApiModelProperty("邮箱账户")
    private String email;

    @ApiModelProperty("创建日期")
    private Date create_time;

    @ApiModelProperty("更新日期")
    private Date update_time;

    @ApiModelProperty("版本锁")
    private Integer version;

    @ApiModelProperty("软删除")
    private Integer deleted;


}
